# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-dosbox
pkgver=0_git20190802
pkgrel=0
_commit="e4ed503b14ed59d5d745396ef1cc7d52cf912328"
pkgdesc="Port of DOSBox (upstream) to the libretro API"
url="https://github.com/libretro/libretro-dosbox"
arch="all"
license="GPL-2.0-only"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/dosbox-libretro/archive/$_commit.tar.gz"
builddir="$srcdir/dosbox-libretro-$_commit"
options="!check" # No tests

build() {
	make -f Makefile.libretro
}

package() {
	install -Dm644 dosbox_libretro.so "$pkgdir"/usr/lib/libretro/dosbox_libretro.so
}

sha512sums="c5d837bfd381305700945a1766310e005102319adb8ac243d423a534300314b75c8db7132ac3c2c78d971c88a5e5cfb38a2fde978b095d1e666591f696dd21f8  libretro-dosbox-e4ed503b14ed59d5d745396ef1cc7d52cf912328.tar.gz"
